<?php
define('IN_SHOP', 1);

$root_path = './';
include($root_path.'common.php');
$user->session_begin(true);
$user->setup('home');

if($_SESSION['session_admin']){	
	include($root_path.'includes/admin_func.php');
	$admin = new Admin();
	$admin->assign();	
	
	$del = request_var('id_del',0);	
	if($del){
		$admin->delete($del);		
	}
}
//$send	= request_var('send', false);
//$email	= request_var('email', '');

$detail = array(
  'vyrobce' => $znacka,
  'popis' => $popis,
);

$item = new Item(TBL_AUTA);
$item->addwhere(array('typ'=>'dil'));
$item->search();
$item->assign();

$smarty->assign('page','Náhradní díly');
//print_r($_GET);
page_header();
$file_output =   "auto.html";
$smarty->display($file_output);


?>